package edu.sctu.jsoup;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@ComponentScan(basePackages = {"edu.sctu"})
@EnableAutoConfiguration
@EnableJpaRepositories(basePackages = {
        "edu.sctu.html.downloader.repo",
        "edu.sctu.html.parser.repo",
        "edu.sctu.ms.common.repo",
})
@EntityScan(basePackages = {
        "edu.sctu.html.downloader.entity",
        "edu.sctu.html.parser.entity",
        "edu.sctu.ms.common.entity",
})
public class Application {


    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }
//
//    @Bean
//    public CommandLineRunner demo(final MfwPoiItemCommentDownloader service) {
//        return (args) -> {
//
//            service.run();
//        };
//    }

}